package com.hko.qrip.service.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;

import com.hko.qrip.bean.PilotReport;
import com.hko.qrip.dao.PilotReportDao;
import com.hko.qrip.service.PilotReportService;

public class PilotReportServiceImpl implements PilotReportService {

	@Autowired
	private PilotReportDao pilotReportDao;

	@Override
	public String testConnection() throws SQLException {
		return pilotReportDao.testConnection();
	}

	@Override
	public PilotReport getPilotReportById(int id) throws SQLException {
		return pilotReportDao.getPilotReportById(id);
	}

	@Override
	public int insertPilotReport(PilotReport pr) throws SQLException {
		return pilotReportDao.insertPilotReport(pr);
	}

}
